package com.kaili.basic.service.impl;

import com.kaili.basic.mapper.GlobalClobMapper;
import com.kaili.basic.service.GlobalClobService;
import com.kaili.basic.pojo.entity.GlobalClob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-27.
 * @modified:
 */
@Service
public class GlobalClobServiceImpl implements GlobalClobService {

    @Autowired
    private GlobalClobMapper globalClobMapper;


    @Override
    public boolean addGlobalClob(GlobalClob clob) {
        int number = globalClobMapper.addGlobalClob(clob);
        if (number > 0){
            return true;
        }else{
            return false;
        }

    }

    @Override
    public boolean ediGlobalClob(GlobalClob clob) {
        int flag = globalClobMapper.ediGlobalClob(clob);
        if (flag > 0){
            return true;
        }else{
            return false;
        }

    }

    @Override
    public GlobalClob getClobById(Long clobId) {
        return globalClobMapper.getGlobalClobById(clobId);
    }
}
